package com.yanqu.road.entity.systemgroup.newmonopolymarket.resgrab;

import com.yanqu.road.entity.systemgroup.newmonopolymarket.NewMonopolyMarketNoticeData;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;


public class NewMonopolyMarketResGrabPointInfo {

    /**
     * 入库信息
     */
    public NewMonopolyMarketResGrabPointData baseInfo;

    /**
     * 派遣的对象
     */
    public Map<Integer, NewMonopolyMarketBaseBattleObjectInfo> objectInfoMap = new HashMap<>(6);

    /**
     * 在房间里面玩家
     */
    public Set<Long> userSet = new HashSet<>();

    /**
     * 缓存公告
     */
    public NewMonopolyMarketNoticeData noticeData;

    public NewMonopolyMarketResGrabPointInfo(NewMonopolyMarketResGrabPointData baseInfo) {
        this.baseInfo = baseInfo;
        for(NewMonopolyMarketBaseBattleObjectInfo item : baseInfo.getObjectInfoList()){
            objectInfoMap.put(item.getId(), item);
        }
    }
}
